# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=libmatemixer
pkgver=1.26.0
pkgrel=2
pkgdesc="A mixer library for MATE desktop"
url="https://git.mate-desktop.org/libmatemixer/"
arch="all"
license="GPL-2.0-or-later"
makedepends="intltool glib-dev alsa-lib-dev pulseaudio-dev"
subpackages="$pkgname-doc $pkgname-dev $pkgname-lang"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/libmatemixer-$pkgver.tar.xz"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
		--enable-static=no \
		--prefix=/usr \
		--enable-alsa \
		--enable-pulseaudio
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
6e97594f9a43f4e66c31e466d8a46ea5d77cb5b5ead26df6461b1529a3b6f1448768a981e7a527a4c07dda0e4cba7470e1fff8b316731da293cfdc0f18aacc73  libmatemixer-1.26.0.tar.xz
"
